package game.command.once
{
	import game.define.NotificationName;
	import game.view.mainscene.MainSceneMediator;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class PrepareViewCommand extends SimpleCommand
	{
		public function PrepareViewCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			trace("PrepareViewCmd");
			
			facade.registerMediator(new MainSceneMediator());
			
			//
			sendNotification(NotificationName.APP_START_COMPLETE);
		}
	}
}